package com.huluobo.a2107jetpackkotlindemo.coroutine

import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

/**
 *  Created by LC on 2023/11/28.
 */
interface ApiService {
    @GET("/goods/info")
    fun queryData(
        @Query("category_id") category_id: Int,
        @Query("currentPage") currentPage: Int,
        @Query("pageSize") pageSize: Int
    ): Call<GoodsBeanResult>

    @GET("/goods/info")
    suspend fun queryData2(
        @Query("category_id") category_id: Int,
        @Query("currentPage") currentPage: Int,
        @Query("pageSize") pageSize: Int
    ): GoodsBeanResult
}